package cn.sofwin.web.blog.web;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionEvent;
import javax.servlet.http.HttpSessionListener;
@WebListener
public class sessionListener implements HttpSessionListener {
    public static int count =0;
    @Override
    public void sessionCreated(HttpSessionEvent se) {
        count++;
        System.out.println("在线人数："+count);
    }

    @Override
    public void sessionDestroyed(HttpSessionEvent se) {

    }
}
